package rs.frenjoynet.core.core.entity.db;

import common.db.id.ProtectedStringIdObject;

/**
 * Created by IntelliJ IDEA.
 * User: Paskal
 * Date: Apr 9, 2009
 * Time: 11:06:32 PM
 * To change this template use File | Settings | File Templates.
 */
public class Language extends ProtectedStringIdObject
{
	private String alphabetName;
	private String dialectName;
	private String javaLocale;

	public final static Language DEF_LANG = new Language("DEFAULT");

	protected Language(String id, String alphabetName, String dialectName, String javaLocale)
	{
		super(id);
		this.alphabetName = alphabetName;
		this.dialectName = dialectName;
		this.javaLocale = javaLocale;
	}

	public Language(String id)
	{
		super(id);
	}

	protected Language()
	{
	}

	@Override
	protected void setId(String id)
	{
		super.setId(id);
	}

	public String getAlphabetName()
	{
		return alphabetName;
	}

	protected void setAlphabetName(String alphabetName)
	{
		this.alphabetName = alphabetName;
	}

	public String getDialectName()
	{
		return dialectName;
	}

	protected void setDialectName(String dialectName)
	{
		this.dialectName = dialectName;
	}

	public String getJavaLocale()
	{
		return javaLocale;
	}

	protected void setJavaLocale(String javaLocale)
	{
		this.javaLocale = javaLocale;
	}

	@Override
	public String toString()
	{
		return "Language{" +
				"alphabetName='" + alphabetName + '\'' +
				", dialectName='" + dialectName + '\'' +
				", javaLocale='" + javaLocale + '\'' +
				'}';
	}
}
